-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[full-ci] ADD VUE history mode #6363
Conversation
820e7a9
to
aaaa4a9
Compare
Results for oCISSharingInternal3 https://drone.owncloud.com/owncloud/web/22425/61/1
|
f284af2
to
e158945
Compare
Results for oC10iPhone1 https://drone.owncloud.com/owncloud/web/22431/48/1 |
Results for oCISFiles3 https://drone.owncloud.com/owncloud/web/22431/57/1 |
Results for oCISSharingInternal1 https://drone.owncloud.com/owncloud/web/22431/59/1 |
Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/22431/53/1 |
Results for oCISSharingAutocompletion https://drone.owncloud.com/owncloud/web/22431/62/1 |
e158945
to
cec78c2
Compare
Results for e2e-tests oC10 https://drone.owncloud.com/owncloud/web/22813/10/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/owncloud/web/tracing/22813/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2022-2-16-11-47-39.zipnpx playwright show-trace https://cache.owncloud.com/owncloud/web/tracing/22813/alice-shares-file-to-brian-alice-2022-2-16-11-48-51.zipnpx playwright show-trace https://cache.owncloud.com/owncloud/web/tracing/22813/alice-shares-folder-with-file-to-brian-alice-2022-2-16-11-50-03.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs documentation about how to activate the history mode, will open an issue for documentation. Changes look good to me! 💪
4ab1dfc
to
df343e0
Compare
Results for e2e-tests oC10 https://drone.owncloud.com/owncloud/web/22833/10/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/owncloud/web/tracing/22833/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2022-2-16-09-07-21.zipnpx playwright show-trace https://cache.owncloud.com/owncloud/web/tracing/22833/alice-shares-file-to-brian-alice-2022-2-16-09-08-31.zipnpx playwright show-trace https://cache.owncloud.com/owncloud/web/tracing/22833/alice-shares-folder-with-file-to-brian-alice-2022-2-16-09-09-42.zip |
Results for oC10iPhoneNotifications https://drone.owncloud.com/owncloud/web/22861/47/1 |
Results for oC10XGAPortraitNotifications https://drone.owncloud.com/owncloud/web/22861/43/1 |
In general this PR is good to go. But there is an issue in playwright vs. nightwatch tests: I don't know the reason, but with this PR the playwright (e2e) tests for ownCloud 10 stop with a timeout on the @phil-davis @individual-it do you have an opinion on this? I didn't find out why the playwright tests now timeout on the authorize page. PR diff doesn't give a hint for me. Could you invest time with high prio to unblock this PR? I'm fine with setting web as trusted client and removing the respective tests for the authorize page in the acceptance test suite. That somehow feels like testing vendor code anyway (checking the fact that the oauth2 page redirects to web after clicking authorize is indirectly testing the oauth2 app instead of web). |
@saw-jan will be investigating the above-mentioned case. |
Results for oC10Notification https://drone.owncloud.com/owncloud/web/22879/40/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
9034abc
to
25bc699
Compare
Do you think it makes sense to make both test suites able to deal with an existing or absent oauth2 authorize page? Meaning: Shortly waiting if it's there, if yes, click authorize, if not, already done with the step? This would still mean that we need to get rid of scenarios or steps in scenarios where we actively wait for the authorize page to appear. How much effort would that be? |
Results for oCISBasic https://drone.owncloud.com/owncloud/web/22881/51/1 |
That approach can be implemented but the problem would the wait time. |
Results for oC10Notification https://drone.owncloud.com/owncloud/web/22882/40/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
Results for oC10XGAPortrait2 https://drone.owncloud.com/owncloud/web/22882/45/1 |
@kulmann , After logging in if we do not wait for some seconds then the |
Results for oCISTrashbinUploadMoveJourney https://drone.owncloud.com/owncloud/web/22948/69/1
|
Results for oCISSharingInternal2 https://drone.owncloud.com/owncloud/web/22948/60/1 |
Results for oCISFiles1 https://drone.owncloud.com/owncloud/web/22948/55/1
|
Results for oC10Files1 https://drone.owncloud.com/owncloud/web/22948/16/1 |
Results for oCISFiles2 https://drone.owncloud.com/owncloud/web/22948/56/1 💥 The acceptance tests failed on retry. Please find the screenshots inside ...
webUIFilesSearch-search_feature-L113.pngwebUIFilesSearch-search_feature-L139.pngwebUIFilesSearch-search_feature-L146.pngwebUIFilesSearch-search_feature-L185.pngwebUIFilesSearch-search_feature-L27.pngwebUIFilesSearch-search_feature-L38.pngwebUIFilesSearch-search_feature-L95.png |
Results for oC10IntegrationApp1 https://drone.owncloud.com/owncloud/web/22948/71/1 |
Results for oC10Files2 https://drone.owncloud.com/owncloud/web/22948/17/1 💥 The acceptance tests failed on retry. Please find the screenshots inside ...
webUIFilesSearch-search_feature-L103.pngwebUIFilesSearch-search_feature-L113.pngwebUIFilesSearch-search_feature-L122.pngwebUIFilesSearch-search_feature-L129.pngwebUIFilesSearch-search_feature-L139.pngwebUIFilesSearch-search_feature-L146.pngwebUIFilesSearch-search_feature-L153.pngwebUIFilesSearch-search_feature-L165.pngwebUIFilesSearch-search_feature-L175.pngwebUIFilesSearch-search_feature-L185.pngwebUIFilesSearch-search_feature-L27.pngwebUIFilesSearch-search_feature-L38.pngwebUIFilesSearch-search_feature-L50.pngwebUIFilesSearch-search_feature-L95.png |
remove authorizePage, fix steps
f610da6
to
d12e58a
Compare
Results for oC10Notification https://drone.owncloud.com/owncloud/web/22951/40/1 |
@fschade @kulmann The real issue was that after the login, the page gets refreshed too early in the tests (which might have prevented some storage or cookies to be set thus causing redirect to login page). But it is still a mystery why that happens only in that docker setup ( |
Kudos, SonarCloud Quality Gate passed! |
Results for oCISSharingPublic1 https://drone.owncloud.com/owncloud/web/22955/67/1
|
@saw-jan many thanks 😗 |
@fschade did you see my comments above? |
there's no need to close the base tag https://www.w3schools.com/tags/tag_base.asp#:~:text=The%20tag%20specifies%20the,inside%20the%20element.
thanks, i create a separate PR for this, the problem we have right now is that we first have to add the base tag to oc10 because it's located in /index.php/apps/web/index.html and having /css/app.css without the base tag could break it.
Yes 404 must be handled inside web (vue) when using the history mode, this is because of the try_file pattern. We need to add those pages in a separate PR
please keep my in the loop if theres something we can do. |
the problem was not closing the tag, it's that in ocis (and I think your code) it uses |
ok, thanks. In the meantime I did a quick fix for the most visible issue (the css not loading), so I think we're good. I'll check the login page with the header issue. |
Description
Before continue reading please check out #6277 first.
We've decided that we need cleaner URL's and the hash
http://foo.tld/#foo/bar
shouldn't be there.To get rid of it we've added an option to enable vue's history mode by using a base tag
<base href="PATH">
.Whenever
index.html
,oidc-callback.html
oroidc-silent-redirect.html
contains it, we instruct the vue router to use the history mode.We cannot force enable it by now because:
history
hash
hash
orhistory
Also having it as an config option is problematic because we cannot find out (for now) where web looks up for the
configuration.json
when displayinghttps://oc.tld/custom/ROOT/some/webdav/PATH
.Using a base tag to enable it, gives us the ability to have information for the vue router which
router.base
and whichrouter.mode
to use.To use it just add a
base
tag toindex.html
,oidc-callback.html
,oidc-silent-redirect.html
and then enable try_files for your webserver. This is done by default when using ocis and no manual editing is needed once owncloud/ocis#3109 is merged.Related Issue
Motivation and Context
nice urls
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: